projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f46f3e2
)
(redisplay_tool_bar): Handle large tool-bar-border values.
author
Kim F. Storm
<storm@cua.dk>
Thu, 11 May 2006 21:26:54 +0000
(21:26 +0000)
committer
Kim F. Storm
<storm@cua.dk>
Thu, 11 May 2006 21:26:54 +0000
(21:26 +0000)
src/xdisp.c
patch
|
blob
|
history
diff --git
a/src/xdisp.c
b/src/xdisp.c
index 984980324b0749690aac1e09faa0e61623569693..c0caaf4daf22ee0ec050e075ed37ec05363a914c 100644
(file)
--- a/
src/xdisp.c
+++ b/
src/xdisp.c
@@
-9723,7
+9723,7
@@
redisplay_tool_bar (f)
border = 0;
rows = f->n_tool_bar_rows;
- height =
(it.last_visible_y - border) / rows
;
+ height =
max (1, (it.last_visible_y - border) / rows)
;
extra = it.last_visible_y - border - height * rows;
while (it.current_y < it.last_visible_y)